<?php

namespace App\Http\Controllers\Test;

use ElfSundae\Laravel\Hashid\Facades\Hashid;
use Lumen\Security\OAuth\AppOAuthClientSecurity;

/**
 * HashidController.
 *
 * @license [http://www.85do.com] [杭州永奥网络科技有限公司]
 * @copyright Copyright (c) 2018-2026 Hangzhou Yongao Technology Co., Ltd. All rights reserved.
 */
class HashidController extends Controller
{
    /**
     * Get all config values.
     *
     * @return mixed
     */
    public function index()
    {
        $security = new AppOAuthClientSecurity();

        return $security->enAppSecret(1234567890);

        //return md5('abcd');
        //return Hashid::connection('optimus')->encode(123456);
        //return Hashid::connection('base62_integer')->encode(123456);
        //return Hashid::connection('hashids_string')->encode('sABNXHZnhiJsNPb5ws81C3OQpTaV8s8HYAizexoB');
        //return Hashid::connection('id')->encode('1234567890123456789012345678901234567890');
        //return Hashid::connection('app_secret')->encode('Ayp6IJsrkBeTMZXnxTiLyOXCdpJlWB1MKSiIAB4M');
    }
}
